package com.foogui.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "order-service")
@RequestMapping("/api")
public interface OrderFeignClient {

    @GetMapping(value = "/order/create")
    ResponseEntity<Boolean> create(@RequestParam("userId") String userId,
                                   @RequestParam("commodityCode") String commodityCode,
                                   @RequestParam("count") Integer count);
}
